home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / wb / DosMan121.lha / man / SetDate < prev    next >
Text File  |  1995-04-03  |  3KB  |  92 lines

  1.  
  2.  
  3.  
  4.      SetDate(V1.3)
  5.  
  6.  
  7.      NAME
  8.           SetDate - Set the DOS datestamp for files.
  9.  
  10.      SYNOPSIS
  11.           1.3:
  12.           SetDate File [DATE] [TIME] [QUIET]
  13.  
  14.           2.x/3.x:
  15.           SetDate File [DATE] [TIME] [QUIET] [ALL]
  16.  
  17.  
  18.      DESCRIPTION
  19.             SetDate changes the last modification date of a file.  
  20.         This is useful with programs such as Make, or if a file 
  21.         was inadvertently created when the operating system was 
  22.         set to a bad date or time.  The last modification date 
  23.         may be viewed using the List command.  As with all 
  24.         programs which accept date and time information, you may 
  25.         use words such as YESTERDAY, MONDAY, etc., to specify the 
  26.         date.
  27.  
  28.             In the 2.x/3.x version of SetDate, you can of course 
  29.         use wildcard patterns to specify more than one filename.  
  30.         If you supply only the filename to SetDate, the current 
  31.         date will be assumed. This is probably the most common 
  32.         use of a program like SetDate, and is very convenient (it 
  33.         performs similarly to the Unix Touch command).
  34.  
  35.             Also under 2.x/3.x SetDate uses the value of the 
  36.         environment variable 'dateformat' to determine the style 
  37.         of input entry it expects.
  38.      
  39.      KEYWORDS
  40.  
  41.         File
  42.             The name of directory or file to SetDate. Under 
  43.         2.x/3.x you can use wildcards to change multiple files.
  44.  
  45.         DATE
  46.             The day, month, and year you wish to change the date 
  47.         to. The recognized format is: DD-MMM-YY.  DD is the 
  48.         two-digit number for the day. MMM is a three-letter 
  49.         abbreviation for the month (eg FEB or APR). YY is the 
  50.         last two digits of the year. 
  51.             You may also use words like SATURDAY, YESTERDAY, 
  52.         TOMORROW, etc.  Saturday, Sunday, Monday, and the rest of 
  53.         the days of the week can be used as flags. The system 
  54.         will evaluate the day then advance the system date to 
  55.         match the specified day of the week. So, if it is Monday 
  56.         and you specify Thursday, the system clock will advance 
  57.         by three days.
  58.             If the date is not specified then the file is set to 
  59.         the current system date and time.
  60.  
  61.  
  62.         Time
  63.             You can set the time along with the date with the use 
  64.         of this optional keyword. The recognized format is 
  65.         HH:MM:SS, for hours, minutes, and seconds respectfully. 
  66.         Hours are recognized in a 24-hour format (aka Military 
  67.         Time) where 1:00pm is represented by 1300 hours. If you 
  68.         leave out minutes and/or seconds they are defaulted to 
  69.         00. If you don't include this keyword then the time-stamp 
  70.         on the file is defaulted to 00:00:00.
  71.  
  72.     EXAMPLE
  73.           
  74.             1. To set the date to January 1st, 1988 to 12:15 for 
  75.         the file 'myfile'.
  76.  
  77.           SETDATE myfile 01-jan-88 12:15
  78.  
  79.             2. To give the file 'foo' yesterday's date:
  80.  
  81.           SETDATE foo YESTERDAY
  82.  
  83.             3. To set all files ending in .o to the current
  84.         date.
  85.  
  86.  
  87.           SETDATE *.o  
  88.  
  89.  
  90.      SEE ALSO
  91.           DATE, LIST
  92.